package com.umpay.dto.merAccess.req.consume;

import com.umpay.annotation.Pattern;
import org.hibernate.validator.constraints.NotEmpty;

public class WarrantSplitCmd {
	
	/**
	 * 商户分账订单号
	 */
//	@NotEmpty(message = "商户分账订单号不能为空")		
	@Pattern(message = "商户分账订单号格式不正确")
	private String split_order_id;	
	
	/**
	 * 商户分账订单日期
	 */
//	@NotEmpty(message = "商户分账订单日期不能为空")		
	@Pattern(message = "商户分账订单日期格式不正确")
	private String split_mer_date;	
	
	/**
	 * 收款方用户号
	 */
	@NotEmpty(message = "收款方用户号不能为空")		
	@Pattern(message = "收款方用户号格式不正确")
	private String in_user_id;	
	
	/**
	 * 收款方账户类型
	 */
	@Pattern(message = "分账方账户类型格式不正确")
	private String in_acc_type;	
	
	/**
	 * 分账类型    1：百分比(暂不支持) 2：固定金额
	 */
	@NotEmpty(message = "分账类型为空")		
	@Pattern(message = "分账类型格式不正确")
	private String split_category;	
	
	/**
	 * 分账金额
	 */
	@NotEmpty(message = "金额不能为空")		
	@Pattern(message = "金额格式不正确")
	private String split_amount;	
	
	/**
	 * 比例
	 */
	@Pattern(message = "分账比例格式不正确")
	private String percent;	
	
	/**
	 * 是否手续费承担方 ，只能有一方
	 */
//	@NotEmpty(message = "是否手续费承担方不能为空")		
	@Pattern(message = "是否手续费承担方格式不正确")
	private String is_fee_payer;

	public String getSplit_order_id() {
		return split_order_id;
	}

	public void setSplit_order_id(String split_order_id) {
		this.split_order_id = split_order_id;
	}

	public String getSplit_mer_date() {
		return split_mer_date;
	}

	public void setSplit_mer_date(String split_mer_date) {
		this.split_mer_date = split_mer_date;
	}

	public String getIn_user_id() {
		return in_user_id;
	}

	public void setIn_user_id(String in_user_id) {
		this.in_user_id = in_user_id;
	}

	public String getIn_acc_type() {
		return in_acc_type;
	}

	public void setIn_acc_type(String in_acc_type) {
		this.in_acc_type = in_acc_type;
	}

	public String getSplit_category() {
		return split_category;
	}

	public void setSplit_category(String split_category) {
		this.split_category = split_category;
	}

	public String getSplit_amount() {
		return split_amount;
	}

	public void setSplit_amount(String split_amount) {
		this.split_amount = split_amount;
	}

	public String getPercent() {
		return percent;
	}

	public void setPercent(String percent) {
		this.percent = percent;
	}

	public String getIs_fee_payer() {
		return is_fee_payer;
	}

	public void setIs_fee_payer(String is_fee_payer) {
		this.is_fee_payer = is_fee_payer;
	}

	@Override
	public String toString() {
		return "WarrantSplitCmd [split_order_id=" + split_order_id + ", split_mer_date=" + split_mer_date
				+ ", in_user_id=" + in_user_id + ", in_acc_type=" + in_acc_type + ", split_category=" + split_category
				+ ", split_amount=" + split_amount + ", percent=" + percent + ", is_fee_payer=" + is_fee_payer + "]";
	}	

}
